package com.dean.ui;

/**
 * @author dean
 * @version 1.0
 * @description: TODO
 * @date 2024/8/6 14:09
 */
public class PageInfo {
    /**
     * 总共的记录数
     */
    private Integer total;
    /**
     * 总共的页大小
     */
    private Integer pageSize;
    /**
     * 当前页
     */
    private Integer pageNum;
    /**
     * 总共多少页
     */
    private Integer totalPage;

    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public Integer getPageNum() {
        return pageNum;
    }

    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
    }

    public Integer getTotalPage() {
        return totalPage;
    }

    public void setTotalPage(Integer totalPage) {
        this.totalPage = totalPage;
    }

    public void setPageInfo(PageInfo pageInfo){
        setPageNum(pageInfo.getPageNum());
        setTotalPage(pageInfo.getTotalPage());
        setTotal(pageInfo.getTotal());
        setPageSize(pageInfo.getPageSize());
    }
}
